docs(skill): optimize instructions for agent context#118
Merged
Conversation
nwparker
force-pushed
the
nwparker/trim-agent-slack-skill
branch
from
July 18, 2026 02:01
f2285ca to
77a86d6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The installable artifact is an agent skill, not a human command manual. Official Codex skill guidance uses progressive disclosure: metadata triggers the skill,
SKILL.mdsupplies the core workflow, and references load only when needed. A duplicated command catalog and tables of contents consume agent context and drift from the installed CLI.Reference: OpenAI — Build skills
What changed
SKILL.mdas concise execution, safety, scheduling, formatting, and progressive-disclosure guidancetest/help-contracts.test.tsllms.txt, andAGENTS.mdaligned with the skillmainand preserve the newly merged canvas-create trigger, mutation boundary, auth/source constraints, and output shapeThe installed skill drops from 25.6 KB to 7.2 KB (about 72%) and from roughly 520 lines to 96, without removing CLI capabilities.
Zero-regression review
Nine independent review passes across three rounds covered realistic task routing, every Slack mutation family, base-to-head compatibility, and help/runtime alignment. Findings fixed before the final round include:
message draftis treated as send-capable and blocked in CI without separate send authorizationThe final three reviewers found no blockers and marked the PR merge-ready.
Validation
bun test: 272 pass, 0 failbun run typecheck: passbun run build: passbun run format:check: passbun run lint: 0 errors (10 pre-existing warnings)git diff --check: passBuild, Lint, Test: pass